package timu3;

public class Main {
    public static void main(String[] args) {
        Connection mysqlConn=ConnectionFactory.createConnection("mysql");
        DatabaseConnectionManager dbManager=DatabaseConnectionManager.getInstance(mysqlConn);
        dbManager.connect();

        Connection postgresqlConn=ConnectionFactory.createConnection("postgresql");
        DatabaseConnectionManager dbmanager2=DatabaseConnectionManager.getInstance(postgresqlConn);
        dbmanager2.connect();
    }
}
